package lab.page.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;


import lab.gene.service.impl.GeneServiceImpl;

public class PrimerInsertPageAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	private List<String> geneList = null;
	private String result = null;
	public String execute() {
		
		GeneServiceImpl service = new GeneServiceImpl();
		setGeneList(service.getAllGeneNames());
		if(result == null)return "success";	
		else return result;
	}

	public List<String> getGeneList() {
		return geneList;
	}

	public void setGeneList(List<String> geneList) {
		this.geneList = geneList;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

}
